package com.hmall.service;

import com.hdmall.business.common.common.ServerResponse;
import com.hmall.mapper.MallPaymentTypeMapper;
import com.hmall.model.MallPaymentType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaymentTypeService {
    @Autowired
   private  MallPaymentTypeMapper mallPaymentTypeMapper;
    public ServerResponse<List<MallPaymentType>> selectPaymentTypes(){
        List<MallPaymentType> list=mallPaymentTypeMapper.selectPaymentTypes();
        return  ServerResponse.createBySuccess(list);
    }
}
